package com.zhida.blogservice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author ling
 * @since 2024-07-29
 */
@Getter
@Setter
@TableName("blog_comment")
@NoArgsConstructor
@AllArgsConstructor
public class BlogComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "comment_id", type = IdType.AUTO)
    private Integer commentId;

    /**
     * 博客id
     */
    @TableField("blog_id")
    private Integer blogId;

    /**
     * 用户
     */
    @TableField("username")
    private String username;

    /**
     * 父级评论
     */
    @TableField("parent_comment_id")
    private Integer parentCommentId;

    /**
     * 评论内容
     */
    @TableField("content")
    private String content;

    /**
     * 点赞数
     */
    @TableField("likes")
    private String likes;

    /**
     * 评论时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 状态：1.正常，0.删除
     */
    @TableField("status")
    private Integer status;

    /**
     * 置顶
     */
    @TableField("top")
    private Integer top;

    /**
     * 评论数量
     */
    @TableField("review")
    private Integer review;
}
